/******************************************************************************/
/* @ All Rights Reserved Copyright (C) 2015 broada,Ltd.                       */
/*                                                                            */
/*  NAME      = frreport_init.c                                               */
/*  NOTE      =                                                               */
/*  DATE      = 2015/03/02 by guojq                                           */
/******************************************************************************/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "frcomm.h"
#include "frmem.h"
#include "frstr.h"

#include "conntrack.h"
#include "module.h"
#include "frreport_comm.h"

#include "frreport_core.h"

#ifdef  __cplusplus
extern "C"
{
#endif
    int report_info_new(Report_module *p_st_module)
    {
        if(p_st_module == NULL)
            return 1;

        p_st_module->p_version = "2.0";

        p_st_module->init = frreport_init;
        p_st_module->destroy = frreport_destory;

        p_st_module->add_conn = frprint_add_report_conn;
        p_st_module->add_data = frprint_add_report_data;
        p_st_module->do_task = frreport_core;
        p_st_module->debug_switch = frreport_debug_switch;
        p_st_module->debug_stat = frreport_debug_stat;
        p_st_module->debug_stat_json = frreport_debug_stat_json;

        return 0;
    }
#ifdef  __cplusplus
}
#endif

